aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatM.../[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapsho...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-11-26 13:30:56 +0000
committerMichael Williamson <mike@zwobble.org>2023-11-26 13:30:56 +0000
commit52444b565aa3fa5719df3acf490eb11b9337511c (patch)
tree03e266c423310eefa25c96ca8f9a457149eb521e /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent844ebd7422818d574a9438464d5eb03c0dbb32ca (diff)
Test WasmBinaryFormatModules directly
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected41
1 files changed, 41 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..a846fad6
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctions(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,41 @@
+
+module.wasm: file format wasm 0x1
+
+Section Details:
+
+Type[2]:
+ - type[0] (f32, f64) -> i32
+ - type[1] (f32) -> i64
+Function[2]:
+ - func[0] sig=0 <f1>
+ - func[1] sig=1 <f2>
+Code[2]:
+ - func[0] size=8 <f1>
+ - func[1] size=6 <f2>
+Custom:
+ - name: "linking"
+ - symbol table [count=2]
+ - 0: F <f1> func=0 [ binding=global vis=default ]
+ - 1: F <f2> func=1 [ binding=global vis=default ]
+Custom:
+ - name: "name"
+ - func[0] <f1>
+ - func[1] <f2>
+ - func[0] local[0] <paramA>
+ - func[0] local[1] <paramB>
+ - func[0] local[2] <localA>
+ - func[0] local[3] <localB>
+ - func[1] local[0] <paramA>
+ - func[1] local[1] <localA>
+
+Code Disassembly:
+
+00002f func[0] <f1>:
+ 000030: 01 7e | local[2] type=i64
+ 000032: 01 7c | local[3] type=f64
+ 000034: 41 00 | i32.const 0
+ 000036: 0b | end
+00003c func[1] <f2>:
+ 00003d: 01 7e | local[1] type=i64
+ 00003f: 42 00 | i64.const 0
+ 000041: 0b | end \ No newline at end of file